<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>环境错误 - {{ config('app.name', 'WP Lara Press') }}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #ff7b7b 0%, #ff416c 100%);
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .container {
            background: white;
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            max-width: 500px;
            padding: 40px;
            text-align: center;
            margin: 20px;
        }

        .icon {
            font-size: 4rem;
            margin-bottom: 20px;
            color: #e74c3c;
        }

        h1 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.8rem;
            font-weight: 600;
        }

        p {
            color: #7f8c8d;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .error-box {
            background: #fff5f5;
            border: 1px solid #fed7d7;
            border-radius: 5px;
            padding: 15px;
            margin: 20px 0;
            text-align: left;
        }

        .error-box strong {
            color: #e53e3e;
        }

        code {
            background: #f1f5f9;
            padding: 2px 6px;
            border-radius: 3px;
            font-family: 'Monaco', 'Consolas', monospace;
            font-size: 0.9rem;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="icon">⚠️</div>
        <h1>WordPress环境未加载</h1>
        <p>此功能需要在WordPress环境中运行，但系统检测到WordPress核心函数不可用。</p>

        <div class="error-box">
            <strong>可能的原因：</strong><br>
            • WordPress插件未正确激活<br>
            • Laravel应用未在WordPress环境中运行<br>
            • 缺少必要的WordPress函数：<code>current_user_can()</code>
        </div>

        <p>请联系系统管理员检查WordPress插件配置。</p>

        <p style="margin-top: 30px; font-size: 0.9rem; color: #95a5a6;">
            <strong>WP Lara Press</strong> - WordPress Laravel API Plugin
        </p>
    </div>
</body>

</html>